<template>
  <el-dialog title="查看详情" v-model="dialogVisible" width="500">
    <el-descriptions border :column="1" title="问候语详情">
      <el-descriptions-item label="问候语id">{{ data.id }}</el-descriptions-item>
      <el-descriptions-item label="问候语名称">
        {{ data.greetType }}
      </el-descriptions-item>
      <el-descriptions-item label="问候语内容">
        {{ data.greetContent }}
      </el-descriptions-item>
      <el-descriptions-item label="创建时间">
        {{ data.createTime }}
      </el-descriptions-item>
      <el-descriptions-item label="修改时间">
        {{ data.updateTime }}
      </el-descriptions-item>
      <el-descriptions-item label="创建人id">
        {{ data.createId }}
      </el-descriptions-item>
      <el-descriptions-item label="修改人id">
        {{ data.updateId }}
      </el-descriptions-item>
    </el-descriptions>
  </el-dialog>
</template>

<script setup lang="ts">
import { ref } from 'vue'

const dialogVisible = ref(false)
const data = ref()

const open = (row: any) => {
  data.value = row
  dialogVisible.value = true
}

defineExpose({ open })
</script>

<style scoped></style>
